package com.example.administrator.zhongyichou.view;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StyleRes;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.zhongyichou.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by lichenyu on 2017/11/24.
 * 描述：
 */

public class PromptDialog extends Dialog implements View.OnClickListener {
    TextView txtKnow;

    public PromptDialog(@NonNull Context context) {
        this(context, 0);
    }

    public PromptDialog(@NonNull Context context, @StyleRes int themeResId) {
        super(context, R.style.dialog);
        View view = LayoutInflater.from(context).inflate(R.layout.prompt_dialog, null);
        setContentView(view);
        txtKnow= (TextView) findViewById(R.id.txt_know);
        txtKnow.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        dismiss();
    }
}

